package com.kkd.kkdapp.db.app.model;

import java.util.List;

import com.kkd.kkdapp.db.annotate.EADBField;
import com.kkd.kkdapp.db.app.EADBHelper;

public class KkdExceptionDb {
	private static final String TABLE_NAME = KkdExceptionDb.class.getSimpleName();
	@EADBField
	public String path;
	
	
	public static long insert(KkdExceptionDb exc) {
		return EADBHelper.getInstance().saveBindId(exc);
	}

	public static List<KkdExceptionDb> getAllPathAndDel() {
		List<KkdExceptionDb> excs = EADBHelper.getInstance().queryAll(KkdExceptionDb.class, null);
		EADBHelper.getInstance().delete(TABLE_NAME, null, null);
		return excs;
	}

}
